Skip to content

fix: add attribute merging to logCheckoutOptionEvent#64

Closed
khushi1033 wants to merge 4 commits intodevelopmentfrom
fix/SDKE-781-add-attribute-merging-to-logCheckoutOptionEvent
Closed

fix: add attribute merging to logCheckoutOptionEvent#64
khushi1033 wants to merge 4 commits intodevelopmentfrom
fix/SDKE-781-add-attribute-merging-to-logCheckoutOptionEvent

Conversation

@khushi1033
Copy link
Contributor

Summary

logCheckoutOptionEvent was missing the event.EventAttributes merging step that all other commerce event handlers perform before forwarding to GA4. This caused add_shipping_info and add_payment_info events to be sent to GA4 without any custom attributes from the inbound mParticle event (e.g. page_url, page_path, mpID, SessionID, or any other event-level attributes set by the customer).

Testing Plan

  • Added a test verifying that EventAttributes are included in the GA4 dataLayer push for add_shipping_info events.
  • Added a test verifying the same for add_payment_info events.
  • The pre-existing suite covering add_shipping_info and add_payment_info mapping continues to pass.

Master Issue

Closes https://go.mparticle.com/work/SDKE-781

@khushi1033 khushi1033 changed the base branch from master to development March 3, 2026 17:45
@rmi22186
Copy link
Collaborator

rmi22186 commented Mar 3, 2026

For updates, please do not include the dist/ folder. We should probably add that to the gitignore actually, if you wouldn't mind doing that.

The dist/ folder is created when we do a release.

@khushi1033 khushi1033 closed this Mar 3, 2026
@khushi1033 khushi1033 deleted the fix/SDKE-781-add-attribute-merging-to-logCheckoutOptionEvent branch March 3, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants